home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1992-09-03 | 1.0 KB | 43 lines |
- ' Fade real WB colours
- ' by Kyzer of CSG
- '
- Dim C(6)
- Global C()
- '
- Wait 50
- _FADEWB[True]
- Wait 50
- _FADEWB[False]
- Wait 50
- Amos To Front
- '
- Procedure _FADEWB[GO]
- ' fades WB
- ' GO==True, fade WB to 0
- ' GO<>True, fade 0 to WB
- Amos To Back
- Screen Open 7,320,8,2,Lowres
- Flash Off : Screen Hide 7
- '
- If GO
- If Length(16)=0 : Reserve As Work 16,118 : End If
- S=Start(16) : Extension_18_0982 S,118
- C(0)=Deek(S+$6E) : C(1)=Deek(S+$70)
- C(2)=Deek(S+$72) : C(3)=Deek(S+$74)
- C(4)=Deek(S+$66) : C(5)=Deek(S+$68)
- C(6)=Deek(S+$6A)
- Palette C(0),C(1),C(2),C(3),C(4),C(5),C(6)
- Fade 3,0,0,0,0,0,0,0
- Else
- Palette 0,0,0,0,0,0,0
- Fade 3,C(0),C(1),C(2),C(3),C(4),C(5),C(6)
- End If
- '
- TIME=Timer : S=Start(16)
- While Timer<TIME+50
- Wait Vbl : Doke S+$6E,Colour(0) : Doke S+$70,Colour(1)
- Doke S+$72,Colour(2) : Doke S+$74,Colour(3) : Doke S+$66,Colour(4)
- Doke S+$68,Colour(5) : Doke S+$6A,Colour(6) : Extension_18_09AC S,118
- Wend
- Screen Close 7
- End Proc